package cn.wolfcode.luowowo.serach.template;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Document(indexName = "luowowo_cabinInfo", type = "cabinInfo")
@Getter
@Setter
@ToString
public class CabinInfoTemplate implements Serializable {
    public static final String INDEX_NAME = "luowowo_cabinInfo";
    public static final String TYPE_NAME = "cabinInfo";
    @Id
    //@Field 每个文档的字段配置（类型、是否分词、是否存储、分词器 ）
    @Field(store = true, index = true, type = FieldType.Long)
    private Long id;  //id

    private Integer cabin; //舱位
    private String cabinGrade; //等级
    private BigDecimal nitTicketPrice; //价格

}